module.exports = function (app) {
  const { router, middleware } = app;
 
  const controller = app.controller.article;
  const prefix = '/api/article';
  router.get(prefix + '/list', controller.list);
  router.get(prefix + '/:id', controller.detail);

  router.get(prefix + '/classIfy/list', controller.classIfyList);
  router.post(prefix + '/classIfy/create', middleware.auth(), controller.classIfyCreate);
  router.post(prefix + '/classIfy/update', middleware.auth(), controller.classIfyUpdate);
}